<?php /* Smarty version 2.6.26, created on 2018-07-05 14:44:40
         compiled from default/header.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'uqcms', 'default/header.html', 14, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="logo_bar">
	<div class="logo">
		<div class="img"><a href="index.php"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo $this->_tpl_vars['UQCMS']['site_logo']; ?>
"/></a></div> 
		<div class="sch">
			<div class="schbox">
			<form action="index.php" method="get">
				<input type="hidden" name="m" value="goods"/>
				<input class="but1" type="text" name="key" placeholder="请输入你要查找的关键字" value="<?php if ($_GET['key']): ?><?php echo $_GET['key']; ?>
<?php endif; ?>"/>
				<input class="but2" type="submit" value="搜索"/> 
			</form>
			</div>
			<div class="schhot">
				<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'hotkey','c' => "keyword:limit=8"), $this);?>

				<?php $_from = $this->_tpl_vars['hotkey']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ky'] => $this->_tpl_vars['k']):
?>
					<a href="index.php?m=goods&key=<?php echo $this->_tpl_vars['k']['keyword']; ?>
" title="<?php echo $this->_tpl_vars['k']['keyword']; ?>
" <?php if ($this->_tpl_vars['k']['hot'] == '1'): ?>class="ch"<?php endif; ?>><?php echo $this->_tpl_vars['k']['keyword']; ?>
</a>
				<?php endforeach; endif; unset($_from); ?>
			</div>
		</div>
	 
		<div class="small_cart">
			<a href="?m=cart">
				<div class="small_cart_name">
					<em></em>
					<span>我的购物车</span>
					<i id="cart_num">0</i>
				</div>
			</a>
			<div class="small_cart_list"></div>
		</div>
	</div>
</div> 
	
<div class="nav_bar">
	<div class="nav">
		<div class="allcats<?php if ($_GET['m'] == "" && $_GET['a'] == ''): ?><?php else: ?> allcats_show<?php endif; ?>">
			<span class="name"><i></i><em>精选商品分类</em></span>
			<div class="mleft menu" <?php if ($_GET['m'] == "" && $_GET['a'] == ''): ?>style="display:block;"<?php endif; ?>> 
		<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'category','v' => 'cats','c' => 'get_list'), $this);?>
		 
		<?php if ($this->_tpl_vars['cats']): ?>
			<?php $_from = $this->_tpl_vars['cats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cs'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cs']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['c']):
        $this->_foreach['cs']['iteration']++;
?>		
			 	<dl<?php if (($this->_foreach['cs']['iteration'] == $this->_foreach['cs']['total']) == 1): ?> style="border-bottom:none;"<?php endif; ?>>
					<dt>
						<i></i>
						<div class="mbig">
							<span><a href="index.php?m=goods&cid=<?php echo $this->_tpl_vars['c']['cid']; ?>
"><?php echo $this->_tpl_vars['c']['name']; ?>
</a></span>
							<p>
								<?php $_from = $this->_tpl_vars['c']['px_hot']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['h']):
?>			
									<a href="index.php?m=goods&cid=<?php echo $this->_tpl_vars['h']['cid']; ?>
"><?php echo $this->_tpl_vars['h']['name']; ?>
</a>
								<?php endforeach; endif; unset($_from); ?>
							</p>
						</div>
						<em>></em>
					</dt>
					<div class="mshow">
						<?php $_from = $this->_tpl_vars['c']['parent']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['p']):
?> 
							<div class="mbox">
								<div class="ml"><a href="?m=goods&cid=<?php echo $this->_tpl_vars['p']['cid']; ?>
"><?php echo $this->_tpl_vars['p']['name']; ?>
</a>：</div>
								<div class="mr">
									<?php $_from = $this->_tpl_vars['p']['pparent']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['pp']):
?> 		
										<span>
											<i>|</i><a href="index.php?m=goods&cid=<?php echo $this->_tpl_vars['pp']['cid']; ?>
" title="<?php echo $this->_tpl_vars['pp']['name']; ?>
" <?php if ($this->_tpl_vars['pp']['hot'] == '1'): ?>class="hot"<?php endif; ?>><?php echo $this->_tpl_vars['pp']['name']; ?>
</a>
										</span>
									<?php endforeach; endif; unset($_from); ?>
								</div>
							</div>
						<?php endforeach; endif; unset($_from); ?>
					</div>
			 	</dl>
			<?php endforeach; endif; unset($_from); ?> 		 
		<?php endif; ?> 
			</div> 
		</div>
		
		<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'template','v' => 'topnav','c' => "nav:limit=8"), $this);?>

		<div class="nav_pub"> 
			<a class="header" href="index.php" class="ch">首页</a>
			<?php $_from = $this->_tpl_vars['topnav']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['tv']):
?>
				<a class="header" href="<?php echo $this->_tpl_vars['tv']['link']; ?>
" title="<?php echo $this->_tpl_vars['tv']['name']; ?>
" target="_blank"><?php echo $this->_tpl_vars['tv']['name']; ?>
</a>
			<?php endforeach; endif; unset($_from); ?>
		</div>
	</div>
</div>